var d = document;
function g( id ) {
    return d.getElementById( id );
}
function selectbox_value( selectbox ) {
    if ( selectbox.options.length > 0 ) {
        return selectbox.options[ selectbox.selectedIndex ].value;
    }
    return '';
}
function nextObject( n ) {
    do n = n.nextSibling;
    while ( n && n.nodeType != 1 );
    return n;
}
function tabinta( e, which ) {
	if ( !e ) {
		e = window.event;
	}
	
	if ( e.keyCode == 9 ) { // tab
		which.value = which.value + "\t";
		return false;
	}
	return true;
}
function taboutta( e, which ) {
	setTimeout( function () {
		which.focus();
	}, 1 );
}
function FixTableRows( table ) {
    var child = table.firstChild;
    var is_t = false;
    while ( child.nextSibling ) {
        child = child.nextSibling;
        if ( typeof child == 'undefined' || child.className == 'title' || child.className == 'newfield' ) {
            continue;
        }
        if ( child.style && child.style.display == 'none' ) {
            continue;
        }
        if ( is_t ) {
            child.className += " t";
        }
        else {
            child.className = "";
        }
        is_t = !is_t;
    }
}
function handle_get() {
    var param_start = 1;

    while ( true ) {
        if ( param_start == null ) {
            param_start = 1;
        }
        var param_end = params.indexOf( "&", param_start );
        var param_name = params.substring( param_start, params.indexOf( "=", param_start ) );
        if ( param_end == -1 ) {
            param_end = params.length;
        }
        $_get[ param_name ] = params.substring( params.indexOf( "=", param_start ) + 1, param_end );
        if ( param_end == params.length ) {
            break;
        }
        param_start = param_end + 1;
    }
}

var req = "" + window.location;
var params = req.substring( req.indexOf( "?" ) );
var $_get = new Array();
handle_get();
